
def reverseWords(s: str):
    tokens = s.split(" ")
    tokens.reverse()
    return " ".join(tokens)


print(reverseWords("I am a student."))